﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 焦点图
	/// </summary>
	public class DbBanner
	{ 
		#region DbBanner
		/// <summary>
		/// 
		/// </summary>
		public DbBanner()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbBanner(Int32 bannerID)
		{
			this.bannerID = bannerID;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbBanner(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["bannerID"]),out bannerID);
			this.bannerName = Convert.ToString(dr["bannerName"]);
			this.bannerUrl = Convert.ToString(dr["bannerUrl"]);
			int.TryParse(Convert.ToString(dr["status"]),out status);
			int.TryParse(Convert.ToString(dr["orderNum"]),out orderNum);
			if(dr["addTime"] != DBNull.Value)
				this.addTime = Convert.ToDateTime(dr["addTime"]);
			this.linkUrl = Convert.ToString(dr["linkUrl"]);
			int.TryParse(Convert.ToString(dr["isWhere"]),out isWhere);
			
		}
		#endregion
		
		
		#region BannerID
		private Int32 bannerID;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 BannerID
		{
			get{ return bannerID; }
			set{ bannerID= value; }
		}
		#endregion
		
		#region BannerName
		private System.String bannerName;
		/// <summary>	 
		/// 焦点图名称
		/// </summary>
		public System.String BannerName
		{
			get{ return bannerName; }
			set{ bannerName= value; }
		}
		#endregion
		
		#region BannerUrl
		private System.String bannerUrl;
		/// <summary>	 
		/// 焦点图路径
		/// </summary>
		public System.String BannerUrl
		{
			get{ return bannerUrl; }
			set{ bannerUrl= value; }
		}
		#endregion
		
		#region Status
		private Int32 status;
		/// <summary>	 
		/// 状态
		/// </summary>
		public Int32 Status
		{
			get{ return status; }
			set{ status= value; }
		}
		#endregion
		
		#region OrderNum
		private Int32 orderNum;
		/// <summary>	 
		/// 排序号
		/// </summary>
		public Int32 OrderNum
		{
			get{ return orderNum; }
			set{ orderNum= value; }
		}
		#endregion
		
		#region AddTime
		private DateTime addTime;
		/// <summary>	 
		/// 添加时间
		/// </summary>
		public DateTime AddTime
		{
			get{ return addTime; }
			set{ addTime= value; }
		}
		#endregion
		
		#region LinkUrl
		private System.String linkUrl;
		/// <summary>	 
		/// 超链接
		/// </summary>
		public System.String LinkUrl
		{
			get{ return linkUrl; }
			set{ linkUrl= value; }
		}
		#endregion
		
		#region IsWhere
		private Int32 isWhere;
		/// <summary>	 
		/// 显示位置
		/// 1-首页焦点图 2-关于我们 3-产品页面 4-会员注册
		/// </summary>
		public Int32 IsWhere
		{
			get{ return isWhere; }
			set{ isWhere= value; }
		}
		#endregion

	}
}
